import request from '@/utils/request'

// 查询车辆销售订单列表
export function listSalevehicleorder(query) {
  return request({
    url: '/salevehicleorder/salevehicleorder/list',
    method: 'get',
    params: query
  })
}

// 查询车辆销售订单详细
export function getSalevehicleorder(salevehicleorderid) {
  return request({
    url: '/salevehicleorder/salevehicleorder/' + salevehicleorderid,
    method: 'get'
  })
}

// 新增车辆销售订单
export function addSalevehicleorder(data) {
  return request({
    url: '/salevehicleorder/salevehicleorder',
    method: 'post',
    data: data
  })
}

// 修改车辆销售订单
export function updateSalevehicleorder(data) {
  return request({
    url: '/salevehicleorder/salevehicleorder',
    method: 'put',
    data: data
  })
}

// 删除车辆销售订单
export function delSalevehicleorder(salevehicleorderid) {
  return request({
    url: '/salevehicleorder/salevehicleorder/' + salevehicleorderid,
    method: 'delete'
  })
}
